.class Lrexsee/core/application/RexseeApplication$1;
.super Ljava/lang/Object;
.source "RexseeApplication.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/application/RexseeApplication;->confirm(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/application/RexseeApplication;

.field private final synthetic val$cancelRunnable:Ljava/lang/Runnable;

.field private final synthetic val$cancelText:Ljava/lang/String;

.field private final synthetic val$confirmRunnable:Ljava/lang/Runnable;

.field private final synthetic val$confirmText:Ljava/lang/String;

.field private final synthetic val$message:Ljava/lang/String;

.field private final synthetic val$title:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/core/application/RexseeApplication;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;Ljava/lang/Runnable;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/application/RexseeApplication$1;->this$0:Lrexsee/core/application/RexseeApplication;

    iput-object p2, p0, Lrexsee/core/application/RexseeApplication$1;->val$title:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/core/application/RexseeApplication$1;->val$message:Ljava/lang/String;

    iput-object p4, p0, Lrexsee/core/application/RexseeApplication$1;->val$confirmText:Ljava/lang/String;

    iput-object p5, p0, Lrexsee/core/application/RexseeApplication$1;->val$cancelText:Ljava/lang/String;

    iput-object p6, p0, Lrexsee/core/application/RexseeApplication$1;->val$confirmRunnable:Ljava/lang/Runnable;

    iput-object p7, p0, Lrexsee/core/application/RexseeApplication$1;->val$cancelRunnable:Ljava/lang/Runnable;

    .line 172
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 175
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication$1;->this$0:Lrexsee/core/application/RexseeApplication;

    # getter for: Lrexsee/core/application/RexseeApplication;->mContext:Landroid/content/Context;
    invoke-static {v2}, Lrexsee/core/application/RexseeApplication;->access$0(Lrexsee/core/application/RexseeApplication;)Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 176
    .local v0, "dialog":Landroid/app/AlertDialog;
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication$1;->this$0:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->icon:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setIcon(Landroid/graphics/drawable/Drawable;)V

    .line 177
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication$1;->val$title:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 178
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication$1;->val$message:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 179
    new-instance v1, Lrexsee/core/application/RexseeApplication$1$1;

    invoke-direct {v1, p0}, Lrexsee/core/application/RexseeApplication$1$1;-><init>(Lrexsee/core/application/RexseeApplication$1;)V

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 186
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication$1;->val$confirmText:Ljava/lang/String;

    if-eqz v1, :cond_0

    .line 187
    const/4 v1, -0x1

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication$1;->val$confirmText:Ljava/lang/String;

    new-instance v3, Lrexsee/core/application/RexseeApplication$1$2;

    iget-object v4, p0, Lrexsee/core/application/RexseeApplication$1;->val$confirmRunnable:Ljava/lang/Runnable;

    invoke-direct {v3, p0, v4}, Lrexsee/core/application/RexseeApplication$1$2;-><init>(Lrexsee/core/application/RexseeApplication$1;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 195
    :cond_0
    iget-object v1, p0, Lrexsee/core/application/RexseeApplication$1;->val$cancelText:Ljava/lang/String;

    if-eqz v1, :cond_1

    .line 196
    const/4 v1, -0x2

    iget-object v2, p0, Lrexsee/core/application/RexseeApplication$1;->val$cancelText:Ljava/lang/String;

    new-instance v3, Lrexsee/core/application/RexseeApplication$1$3;

    iget-object v4, p0, Lrexsee/core/application/RexseeApplication$1;->val$cancelRunnable:Ljava/lang/Runnable;

    invoke-direct {v3, p0, v4}, Lrexsee/core/application/RexseeApplication$1$3;-><init>(Lrexsee/core/application/RexseeApplication$1;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 204
    :cond_1
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 205
    return-void
.end method
